upstream {{ wordpress_server_name }} {

{% for host in groups["webservers"]%}
	server {{ host }}:{{ wordpress_listen_port }};
{% endfor %}
}

server {
	listen {{ wordpress_proxy_port }};
	server_name {{ wordpress_server_name }};

	location / {
		proxy_pass http://{{ wordpress_server_name }};
		include proxy_params;
	}
}
